﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Net;
using System.Text;
using System.IO;

namespace MailCrawler.Workflow
{
	public static class HeaderFetcher
	{
	    public static List<FileInfo> HeaderFiles;
	    public static List<string>  headers;
        static  HeaderFetcher()
        {
            var v = from a in new DirectoryInfo(Environment.CurrentDirectory + @"\Headers").GetFiles() select a;
            HeaderFiles = v.ToList();
            headers = new List<string>();
        }
        public static void Select(FileInfo st)
        {
            var str = File.ReadAllLines(st.FullName).ToList();
            headers.AddRange(str);
        }
	}
    public class HeaderDescription
    {
        public string Filename{ get; set;}
    }
}
